home *** CD-ROM | disk | FTP | other *** search
- /*
- * Cylinder.h - class definition for geometric object cylinder.
- *
- * Copyright (C) 1992, Christoph Streit (streit@iam.unibe.ch)
- * University of Berne, Switzerland
- * Copyright (C) 1989, 1991, Craig E. Kolb
- * All rights reserved.
- *
- * This software may be freely copied, modified, and redistributed
- * provided that this copyright notice is preserved on all copies.
- *
- * You may not distribute this software, in whole or in part, as part of
- * any commercial product without the express consent of the authors.
- *
- * There is no warranty or other guarantee of fitness of this software
- * for any purpose. It is provided solely "as is".
- *
- */
-
- #ifndef Cylinder_H
- # define Cylinder_H
-
- #include "GeoObject.h"
- #include "Polygon.h"
-
- //___________________________________________________________ Cylinder
-
- class Cylinder : public GeoObject
- {
- public:
- static GeoObject* create(real, const Vector&, const Vector&);
-
- int intersect(const Ray&, real, real&);
- Vector normal(const Vector&) const;
- PolygonList* tesselate(const BoundingBox&);
-
- int setTransform(TransMatrix*);
-
- private:
- Cylinder(real, const Vector&, const Vector&);
- };
-
- #endif // Cylinder_H
-